package com.example.service;

import com.example.pojo.DeptLog;
import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;

public interface DeptLogService {

    @Transactional(propagation = Propagation.REQUIRES_NEW) //这个是开个新事物 无论成功与否都记录日志
    void insert(DeptLog deptLog);
}
